﻿using FileStorageCenter;

namespace System;

public static class ServiceProviderExtensions
{
    public static IServiceProvider Initialize(this IServiceProvider provider)
    {
        AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);

        App.Services = provider;

        return provider;
    }
}